#include <stdlib.h>
#include <stdio.h>
#include "list.h"

int main(int argc, char* argv[]) {

    list_t* my_list = init_list();
    push(my_list, (void*) 12);
    push(my_list, (void*) 13);
    push(my_list, (void*) 14);
    push(my_list, (void*) 15);

    printf("Length: %d\n", list_length(my_list));
 
    void* v = pop(my_list);
    for(; v; v = pop(my_list)) {
        printf("Val: %d\n", v);
    }

    printf("Length: %d\n", list_length(my_list));
    free_list(my_list);

    return 0;
};
